home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / ShutDown.a < prev    next >
Text File  |  1996-05-01  |  2KB  |  89 lines

  1. ;
  2. ;    File:        ShutDown.a
  3. ;
  4. ;    Contains:    Shutdown Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__SHUTDOWN__') = 'UNDEFINED' THEN
  19. __SHUTDOWN__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  25.     include 'MixedMode.a'
  26.     ENDIF
  27.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  28.  
  29. sdOnPowerOff                    EQU        1                    ;call procedure before power off.
  30. sdOnRestart                        EQU        2                    ;call procedure before restart.
  31. sdOnUnmount                        EQU        4                    ;call procedure before unmounting.
  32. sdOnDrivers                        EQU        8                    ;call procedure before closing drivers.
  33. sdRestartOrPower                EQU        3                    ;call before either power off or restart.
  34. ;
  35. ; pascal void ShutDwnPower(void )
  36. ;
  37.     IF ¨ GENERATINGCFM THEN
  38.         Macro
  39.         _ShutDwnPower
  40.             move.w              #$0001,-(sp)
  41.             dc.w                $A895
  42.         EndM
  43.     ELSE
  44.         IMPORT_CFM_FUNCTION ShutDwnPower
  45.     ENDIF
  46.  
  47. ;
  48. ; pascal void ShutDwnStart(void )
  49. ;
  50.     IF ¨ GENERATINGCFM THEN
  51.         Macro
  52.         _ShutDwnStart
  53.             move.w              #$0002,-(sp)
  54.             dc.w                $A895
  55.         EndM
  56.     ELSE
  57.         IMPORT_CFM_FUNCTION ShutDwnStart
  58.     ENDIF
  59.  
  60. ;
  61. ; pascal void ShutDwnInstall(ShutDwnUPP shutDownProc, short flags)
  62. ;
  63.     IF ¨ GENERATINGCFM THEN
  64.         Macro
  65.         _ShutDwnInstall
  66.             move.w              #$0003,-(sp)
  67.             dc.w                $A895
  68.         EndM
  69.     ELSE
  70.         IMPORT_CFM_FUNCTION ShutDwnInstall
  71.     ENDIF
  72.  
  73. ;
  74. ; pascal void ShutDwnRemove(ShutDwnUPP shutDownProc)
  75. ;
  76.     IF ¨ GENERATINGCFM THEN
  77.         Macro
  78.         _ShutDwnRemove
  79.             move.w              #$0004,-(sp)
  80.             dc.w                $A895
  81.         EndM
  82.     ELSE
  83.         IMPORT_CFM_FUNCTION ShutDwnRemove
  84.     ENDIF
  85.  
  86.     ENDIF
  87.     ENDIF ; __SHUTDOWN__ 
  88.  
  89.